package weibo.crawler.UO;
// default package

import java.util.Date;

import weibo4j.model.Status;


/**
 * RawStatusUO entity. @author MyEclipse Persistence Tools
 */

public class RawStatusUO  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String uid;
     private String sid;
     private Date createdAt;
     private String text;
     private Integer repostsCount;
     private Integer commentsCount;


    // Constructors

    /** default constructor */
    public RawStatusUO() {
    }

    
    /** full constructor */
    public RawStatusUO(String uid, String sid, Date createdAt, String text, Integer repostsCount, Integer commentsCount) {
        this.uid = uid;
        this.sid = sid;
        this.createdAt = createdAt;
        this.text = text;
        this.repostsCount = repostsCount;
        this.commentsCount = commentsCount;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public String getUid() {
        return this.uid;
    }
    
    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getSid() {
        return this.sid;
    }
    
    public void setSid(String sid) {
        this.sid = sid;
    }

    public Date getCreatedAt() {
        return this.createdAt;
    }
    
    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public String getText() {
        return this.text;
    }
    
    public void setText(String text) {
        this.text = text;
    }

    public Integer getRepostsCount() {
        return this.repostsCount;
    }
    
    public void setRepostsCount(Integer repostsCount) {
        this.repostsCount = repostsCount;
    }

    public Integer getCommentsCount() {
        return this.commentsCount;
    }
    
    public void setCommentsCount(Integer commentsCount) {
        this.commentsCount = commentsCount;
    }
   

    public void setStatus(Status s) {  	
    	this.setCommentsCount(s.getCommentsCount());
    	this.setCreatedAt(s.getCreatedAt());
    	this.setSid(s.getId());
    	this.setText(s.getText());
    	this.setRepostsCount(s.getRepostsCount());
    	this.setCommentsCount(s.getCommentsCount());
    	this.setUid(s.getUser().getId());
    }






}